<?php /* Smarty version 2.6.26, created on 2014-10-24 23:13:55
         compiled from index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'index.html', 17, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>blog</title>
	<link rel="stylesheet" href="<?php echo @__VIEW__; ?>
Index/css/index.css" />
</head>
<body>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<div id="content">
		<div class="main">
			<div class="left">
				<?php unset($this->_sections['d']);
$this->_sections['d']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['d']['name'] = 'd';
$this->_sections['d']['show'] = true;
$this->_sections['d']['max'] = $this->_sections['d']['loop'];
$this->_sections['d']['step'] = 1;
$this->_sections['d']['start'] = $this->_sections['d']['step'] > 0 ? 0 : $this->_sections['d']['loop']-1;
if ($this->_sections['d']['show']) {
    $this->_sections['d']['total'] = $this->_sections['d']['loop'];
    if ($this->_sections['d']['total'] == 0)
        $this->_sections['d']['show'] = false;
} else
    $this->_sections['d']['total'] = 0;
if ($this->_sections['d']['show']):

            for ($this->_sections['d']['index'] = $this->_sections['d']['start'], $this->_sections['d']['iteration'] = 1;
                 $this->_sections['d']['iteration'] <= $this->_sections['d']['total'];
                 $this->_sections['d']['index'] += $this->_sections['d']['step'], $this->_sections['d']['iteration']++):
$this->_sections['d']['rownum'] = $this->_sections['d']['iteration'];
$this->_sections['d']['index_prev'] = $this->_sections['d']['index'] - $this->_sections['d']['step'];
$this->_sections['d']['index_next'] = $this->_sections['d']['index'] + $this->_sections['d']['step'];
$this->_sections['d']['first']      = ($this->_sections['d']['iteration'] == 1);
$this->_sections['d']['last']       = ($this->_sections['d']['iteration'] == $this->_sections['d']['total']);
?>
				<div class="first_blog">
					<h2><a href="?a=blog&cid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['cid']; ?>
&bid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['bid']; ?>
"><?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['title']; ?>
</a></h2>
					<div class="con">
					<p class="info">发表于：<b><?php echo ((is_array($_tmp=$this->_tpl_vars['data'][$this->_sections['d']['index']]['addtime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
</b>   <span>
					<script src='?m=Index&c=Index&a=getClick&bid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['bid']; ?>
' type='text/javascript'></script>
					</span>  浏览 </p>
					<div class="img">
					<!-- <img src="<?php echo @__VIEW__; ?>
Index/images/img_1.jpg" alt="" /> -->
					<?php if ($this->_tpl_vars['data'][$this->_sections['d']['index']]['thumb']): ?>
                        <img src="<?php echo @__ROOT__; ?>
<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['thumb']; ?>
" alt="" width="613px" height="193px">
                        <?php else: ?>
                         <img src="<?php echo @__ROOT__; ?>
Upload/401413967624.jpg" alt="" width="613px" height="193px">
                        <?php endif; ?>
					</div>
					<p class="artic"> <?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['content']; ?>
 </p>
					</div>
				</div>
				<?php endfor; endif; ?>
				<!-- <div class="first_blog">
					
				</div> -->
				<div class="page">
					<!-- <a href="" class="active">1</a>
					<a href="">2</a>
					<a href="">3</a> -->
					<div>
						<?php echo $this->_tpl_vars['page']; ?>
  
					</div>
				</div>
			</div>
			<div class="right">
				<div class="hot">
					<h2>热门文章</h2>
					<ul>
				    	<?php unset($this->_sections['h']);
$this->_sections['h']['loop'] = is_array($_loop=$this->_tpl_vars['hotBlog']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['h']['name'] = 'h';
$this->_sections['h']['show'] = true;
$this->_sections['h']['max'] = $this->_sections['h']['loop'];
$this->_sections['h']['step'] = 1;
$this->_sections['h']['start'] = $this->_sections['h']['step'] > 0 ? 0 : $this->_sections['h']['loop']-1;
if ($this->_sections['h']['show']) {
    $this->_sections['h']['total'] = $this->_sections['h']['loop'];
    if ($this->_sections['h']['total'] == 0)
        $this->_sections['h']['show'] = false;
} else
    $this->_sections['h']['total'] = 0;
if ($this->_sections['h']['show']):

            for ($this->_sections['h']['index'] = $this->_sections['h']['start'], $this->_sections['h']['iteration'] = 1;
                 $this->_sections['h']['iteration'] <= $this->_sections['h']['total'];
                 $this->_sections['h']['index'] += $this->_sections['h']['step'], $this->_sections['h']['iteration']++):
$this->_sections['h']['rownum'] = $this->_sections['h']['iteration'];
$this->_sections['h']['index_prev'] = $this->_sections['h']['index'] - $this->_sections['h']['step'];
$this->_sections['h']['index_next'] = $this->_sections['h']['index'] + $this->_sections['h']['step'];
$this->_sections['h']['first']      = ($this->_sections['h']['iteration'] == 1);
$this->_sections['h']['last']       = ($this->_sections['h']['iteration'] == $this->_sections['h']['total']);
?>
				    	<li><a href="?m=Index&c=Index&a=blog&cid=<?php echo $this->_tpl_vars['hotBlog'][$this->_sections['h']['index']]['cid']; ?>
&bid=<?php echo $this->_tpl_vars['hotBlog'][$this->_sections['h']['index']]['bid']; ?>
" class="title"><?php echo $this->_tpl_vars['hotBlog'][$this->_sections['h']['index']]['title']; ?>
</a></li>
				    	 <?php endfor; endif; ?>
    				</ul>
				</div>
				<div class="new">
					<h2>最新文章</h2>
					<ul>
						<?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['newBlog']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
				    	<li><a href="?m=Index&c=Index&a=blog&cid=<?php echo $this->_tpl_vars['newBlog'][$this->_sections['n']['index']]['cid']; ?>
&bid=<?php echo $this->_tpl_vars['newBlog'][$this->_sections['n']['index']]['bid']; ?>
" class="title"><?php echo $this->_tpl_vars['newBlog'][$this->_sections['n']['index']]['title']; ?>
</a></li>
				    	 <?php endfor; endif; ?>
    				</ul>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">Copyright © 2014 houdunwang.COM  All Rights Reserved. Theme By C40ZengXinDong</div>
</body>
</html>